//
//  AddSeatUserView.m
//  BaseProject
//
//  Created by 王洋 on 2020/11/19.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "AddSeatUserView.h"

@implementation AddSeatUserView


- (IBAction)addAction:(id)sender {
    
    if (self.AddSeatUserViewBlock) {
        self.AddSeatUserViewBlock(self.nameTF.text);
    }
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [self.bgView pp_clipCorners:UIRectCornerAllCorners radius:10];
        [self.addBtn pp_clipCorners:UIRectCornerAllCorners radius:self.addBtn.frame.size.height/2];
    });
}

@end
